<?php

/* * 
 * 资讯
 */
namespace Common\Model;
use Think\Model;
class DoctorModel extends BaseModel {

    public function queryForList($page=null, $map=null) {
        $list = $this->alias("d")
            ->join("left join __CITY__ c on c.city_id = d.city_id")
            ->where(getWhereSqlByMap($map))
            ->order("d.create_time desc")
            ->limit($page->firstRow . ',' . $page->listRows)
            ->field("d.*,c.city_name")
            ->select();

        return $list;

    }

}

